package cn.yogehaoren.foxgitstarter.git;

import lombok.extern.slf4j.Slf4j;
import org.eclipse.jgit.lib.ProgressMonitor;

/**
 * @author WangNing
 * date  2021/7/14 22:08
 * @version 1.0
 */
@Slf4j
public class GitCloneConfigMonitor implements ProgressMonitor {

    @Override
    public void start(int i) {
        log.info("Start work on {} tasks", i);
    }

    @Override
    public void beginTask(String s, int i) {
        log.info("Start {}: {}", s, i);
    }

    @Override
    public void update(int i) {

    }

    @Override
    public void endTask() {
        log.info("Complete");
    }

    @Override
    public boolean isCancelled() {
        return false;
    }
}
